\hypertarget{class_yig_mod_field}{
\section{YigModField Class Reference}
\label{class_yig_mod_field}\index{YigModField@{YigModField}}
}


{\ttfamily \#include $<$yigsynthgraphic.h$>$}

Inheritance diagram for YigModField:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3cm]{class_yig_mod_field}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_yig_mod_field_aa5cc3e16f548526275dc15eb0e899ddf}{YigModField} (\hyperlink{class_yig_synth_graphic}{YigSynthGraphic} $\ast$synthGraphic, qreal x=0, qreal y=0, qreal width=0, qreal height=0, QGraphicsItem $\ast$parent=0)
\item 
\hyperlink{class_yig_mod_field_a805ab5a31de2859865b5b4ed57f651c8}{$\sim$YigModField} ()
\item 
void \hyperlink{class_yig_mod_field_ad669a611af2b3bebd0ac34ee07fbca7f}{updatePos} (const QPointF \&pos)
\item 
QGraphicsEllipseItem $\ast$ \hyperlink{class_yig_mod_field_a5e5425d5562f74c84109da709a5cf244}{getModElectron} ()
\item 
\hyperlink{class_yig_synth_graphic}{YigSynthGraphic} $\ast$ \hyperlink{class_yig_mod_field_a32b9c165fd9ce00d1674a2ad14ea9008}{getParentGraphic} ()
\item 
int \hyperlink{class_yig_mod_field_a4c1eb0584f059523edb8f6888f76267c}{type} () const 
\item 
void \hyperlink{class_yig_mod_field_abef98bde627b0bc31f26391eded0ea12}{paint} (QPainter $\ast$painter, const QStyleOptionGraphicsItem $\ast$option, QWidget $\ast$widget)
\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{class_yig_mod_field_a94f922c39dd34b32bb70d88bfb1d864f}{mouseMoveEvent} (QGraphicsSceneMouseEvent $\ast$event)
\item 
virtual void \hyperlink{class_yig_mod_field_a5e40f047eadf2d8e8807d42ee74747c6}{updateParameter} (float parameter)
\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_yig_synth_graphic}{YigSynthGraphic} $\ast$ \hyperlink{class_yig_mod_field_a886576a6c297f2b502d8a8f08c0e9938}{parentGraphic}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\hyperlink{class_yig_mod_field}{YigModField} Defines the outer rings around the synth that can be rotated to modulate the synth 

\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_yig_mod_field_aa5cc3e16f548526275dc15eb0e899ddf}{
\index{YigModField@{YigModField}!YigModField@{YigModField}}
\index{YigModField@{YigModField}!YigModField@{YigModField}}
\subsubsection[{YigModField}]{\setlength{\rightskip}{0pt plus 5cm}YigModField::YigModField ({\bf YigSynthGraphic} $\ast$ {\em synthGraphic}, \/  qreal {\em x} = {\ttfamily 0}, \/  qreal {\em y} = {\ttfamily 0}, \/  qreal {\em width} = {\ttfamily 0}, \/  qreal {\em height} = {\ttfamily 0}, \/  QGraphicsItem $\ast$ {\em parent} = {\ttfamily 0})}}
\label{class_yig_mod_field_aa5cc3e16f548526275dc15eb0e899ddf}
\hyperlink{class_yig_mod_field}{YigModField} constructor 
\begin{DoxyParams}{Parameters}
\item[{\em YigSynthGraphic$\ast$}]synthGraphic pointer to the parent \hyperlink{class_yig_synth_graphic}{YigSynthGraphic}. We use this to emit a signal from the parent \item[{\em qreal}]x Beginning x coordinate \item[{\em qreal}]y Beginning y coordinate \item[{\em qreal}]width Width of the ellipse \item[{\em qreal}]height Height of the ellipse \item[{\em QGraphicsItem$\ast$}]parent Parent graphics item \end{DoxyParams}
\hypertarget{class_yig_mod_field_a805ab5a31de2859865b5b4ed57f651c8}{
\index{YigModField@{YigModField}!$\sim$YigModField@{$\sim$YigModField}}
\index{$\sim$YigModField@{$\sim$YigModField}!YigModField@{YigModField}}
\subsubsection[{$\sim$YigModField}]{\setlength{\rightskip}{0pt plus 5cm}YigModField::$\sim$YigModField ()}}
\label{class_yig_mod_field_a805ab5a31de2859865b5b4ed57f651c8}
\hyperlink{class_yig_mod_field}{YigModField} deconstructor 

\subsection{Member Function Documentation}
\hypertarget{class_yig_mod_field_a5e5425d5562f74c84109da709a5cf244}{
\index{YigModField@{YigModField}!getModElectron@{getModElectron}}
\index{getModElectron@{getModElectron}!YigModField@{YigModField}}
\subsubsection[{getModElectron}]{\setlength{\rightskip}{0pt plus 5cm}QGraphicsEllipseItem $\ast$ YigModField::getModElectron ()}}
\label{class_yig_mod_field_a5e5425d5562f74c84109da709a5cf244}
itemClick Overridden from parent, but does nothing for mod field...so far... 
\begin{DoxyParams}{Parameters}
\item[{\em QGraphicsItem$\ast$}]item The item that was clicked on \hyperlink{class_yig_mod_field_a5e5425d5562f74c84109da709a5cf244}{getModElectron()} Returns a pointer to the child mod ellipse \end{DoxyParams}
\begin{DoxyReturn}{Returns}
QGraphicsEllipseItem$\ast$ The attached mod electron ellipse 
\end{DoxyReturn}
\hypertarget{class_yig_mod_field_a32b9c165fd9ce00d1674a2ad14ea9008}{
\index{YigModField@{YigModField}!getParentGraphic@{getParentGraphic}}
\index{getParentGraphic@{getParentGraphic}!YigModField@{YigModField}}
\subsubsection[{getParentGraphic}]{\setlength{\rightskip}{0pt plus 5cm}{\bf YigSynthGraphic} $\ast$ YigModField::getParentGraphic ()}}
\label{class_yig_mod_field_a32b9c165fd9ce00d1674a2ad14ea9008}
getParentGraphic get the parent synth graphic for this mod field \begin{DoxyReturn}{Returns}
YigSynthGraphic$\ast$ Pointer to the graphic 
\end{DoxyReturn}
\hypertarget{class_yig_mod_field_a94f922c39dd34b32bb70d88bfb1d864f}{
\index{YigModField@{YigModField}!mouseMoveEvent@{mouseMoveEvent}}
\index{mouseMoveEvent@{mouseMoveEvent}!YigModField@{YigModField}}
\subsubsection[{mouseMoveEvent}]{\setlength{\rightskip}{0pt plus 5cm}void YigModField::mouseMoveEvent (QGraphicsSceneMouseEvent $\ast$ {\em event})\hspace{0.3cm}{\ttfamily  \mbox{[}protected\mbox{]}}}}
\label{class_yig_mod_field_a94f922c39dd34b32bb70d88bfb1d864f}
overidden to allow for rotation modulation \hypertarget{class_yig_mod_field_abef98bde627b0bc31f26391eded0ea12}{
\index{YigModField@{YigModField}!paint@{paint}}
\index{paint@{paint}!YigModField@{YigModField}}
\subsubsection[{paint}]{\setlength{\rightskip}{0pt plus 5cm}void YigModField::paint (QPainter $\ast$ {\em painter}, \/  const QStyleOptionGraphicsItem $\ast$ {\em option}, \/  QWidget $\ast$ {\em widget})}}
\label{class_yig_mod_field_abef98bde627b0bc31f26391eded0ea12}
overridden to allot for custom highlight painting \hypertarget{class_yig_mod_field_a4c1eb0584f059523edb8f6888f76267c}{
\index{YigModField@{YigModField}!type@{type}}
\index{type@{type}!YigModField@{YigModField}}
\subsubsection[{type}]{\setlength{\rightskip}{0pt plus 5cm}int YigModField::type () const}}
\label{class_yig_mod_field_a4c1eb0584f059523edb8f6888f76267c}
overridden type allows us to differentiate types during collisions 

Reimplemented in \hyperlink{class_yig_mod_field2_aacfb5a96febb8d2459deaa720486fe04}{YigModField2}.

\hypertarget{class_yig_mod_field_a5e40f047eadf2d8e8807d42ee74747c6}{
\index{YigModField@{YigModField}!updateParameter@{updateParameter}}
\index{updateParameter@{updateParameter}!YigModField@{YigModField}}
\subsubsection[{updateParameter}]{\setlength{\rightskip}{0pt plus 5cm}void YigModField::updateParameter (float {\em parameter})\hspace{0.3cm}{\ttfamily  \mbox{[}protected, virtual\mbox{]}}}}
\label{class_yig_mod_field_a5e40f047eadf2d8e8807d42ee74747c6}
updateParameter 
\begin{DoxyParams}{Parameters}
\item[{\em float}]parameter The new value \end{DoxyParams}


Reimplemented in \hyperlink{class_yig_mod_field2_aca63981d656940828068d4d1610992aa}{YigModField2}.

\hypertarget{class_yig_mod_field_ad669a611af2b3bebd0ac34ee07fbca7f}{
\index{YigModField@{YigModField}!updatePos@{updatePos}}
\index{updatePos@{updatePos}!YigModField@{YigModField}}
\subsubsection[{updatePos}]{\setlength{\rightskip}{0pt plus 5cm}void YigModField::updatePos (const QPointF \& {\em pos})\hspace{0.3cm}{\ttfamily  \mbox{[}virtual\mbox{]}}}}
\label{class_yig_mod_field_ad669a611af2b3bebd0ac34ee07fbca7f}
Overridden method calls the parent graphics' keyboard delete method updatePos Overridden from parent, but does nothing for mod field...so far... 
\begin{DoxyParams}{Parameters}
\item[{\em const}]QPointF \&pos New position \end{DoxyParams}


Implements \hyperlink{class_yig_base_graphic_a4e5a75636c5970312d6994d19d4df23b}{YigBaseGraphic}.



\subsection{Member Data Documentation}
\hypertarget{class_yig_mod_field_a886576a6c297f2b502d8a8f08c0e9938}{
\index{YigModField@{YigModField}!parentGraphic@{parentGraphic}}
\index{parentGraphic@{parentGraphic}!YigModField@{YigModField}}
\subsubsection[{parentGraphic}]{\setlength{\rightskip}{0pt plus 5cm}{\bf YigSynthGraphic}$\ast$ {\bf YigModField::parentGraphic}\hspace{0.3cm}{\ttfamily  \mbox{[}protected\mbox{]}}}}
\label{class_yig_mod_field_a886576a6c297f2b502d8a8f08c0e9938}
Pointer to the parent synth graphic 

The documentation for this class was generated from the following files:\begin{DoxyCompactItemize}
\item 
graphics/yigsynthgraphic.h\item 
graphics/yigsynthgraphic.cpp\end{DoxyCompactItemize}
